package com.kylin.core.commodity.event.repository;

import com.querydsl.jpa.impl.JPAQueryFactory;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import javax.persistence.EntityManager;

/**
 * 拼团数据处理类（写）
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年01月12日 13:57
 */
@Component
public final class GrouponDataHandler {

    private final JPAQueryFactory grouponQueryFactory;
//    private final QGroupAppliedEntry qGroupAppliedEntry;
//    private final QGroupCommodityEntry qGroupCommodityEntry;
//    private final QGroupCampaignEntry qGroupCampaignEntry;

    public GrouponDataHandler(@Qualifier("kylinArtworkEntityManager") EntityManager entityManager) {
        this.grouponQueryFactory = new JPAQueryFactory(entityManager);
//        this.qGroupAppliedEntry = QGroupAppliedEntry.groupAppliedEntry;
//        this.qGroupCommodityEntry = QGroupCommodityEntry.groupCommodityEntry;
//        this.qGroupCampaignEntry = QGroupCampaignEntry.groupCampaignEntry;
    }
}
